<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th class="text-center"><div class="table-first-id">ID</div></th>
            <th class="text-center" width="10%">当前余额</th>
            <th class="text-center" width="10%">账户历史内容描述</th>
            <th class="text-center" width="10%">银行转账余额</th>
            <th class="text-center" width="15%">充值卡余额</th>
            <th class="text-center" width="14%">交易金额</th>
            <th class="text-center" width="12%">交易类型</th>
            <th class="text-center" width="12%">业务类型</th>
            <th class="text-center" width="15%">操作时间</th>
        </tr>
        </thead>
    </table>
    <div class="J_V_tabContent table-xScrollWrap">
        <table class="table table-bordered table-hover table-xs-content">
            <tbody>
            <tr class="jqgfirstrow" role="row">
                <td role="gridcell"><div class="table-first-id">&nbsp;</div></td>
                <th width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="15%">&nbsp;</th>
                <th class="text-center" width="14%">&nbsp;</th>
                <th class="text-center" width="12%">&nbsp;</th>
                <th class="text-center" width="12%">&nbsp;</th>
                <th class="text-center" width="15%">&nbsp;</th>
            </tr>
                <tr th:if="${#lists.isEmpty(dataMap['list'])}">
                    <td colspan="9" class="text-center">
                        <!--公共无数据提示 开始-->
                        <div class="noDataTipsBox">
                            <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                        </div>
                        <!--公共无数据提示 结束-->
                    </td>
                </tr>

                <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="accountHistory : ${dataMap['list']}" th:attr="data-id=${accountHistory['id']}" th:attrappend="data-status=${accountHistory['status']}" th:attrprepend="id='accountHistory-'+${accountHistory['id']}">
                    <td class="text-center"><div class="table-first-id"> <span th:text="${accountHistory['id']}"></span></div></td>
                    <td class="text-center"><i class="fa fa-yen"></i> <span th:text="${accountHistory['balance']}"></span></td>
                    <td class="text-center"> <span th:text="${accountHistory['description']}"></span></td>
                    <td class="text-center"><i class="fa fa-yen"></i> <span th:text="${accountHistory['cashAmount']}"></span></td>
                    <td class="text-center"><i class="fa fa-yen"></i> <span th:text="${accountHistory['vmAmount']}"></span></td>
                    <td class="text-center"><i class="fa fa-yen"></i> <span th:text="${accountHistory['trxAmount']}"></span></td>
                    <td class="text-center">
                        <span th:if="${accountHistory['actHistoryType']}=='SALES'">消费</span>
                        <span th:if="${accountHistory['actHistoryType']}=='REFUND'">退款</span>
                        <span th:if="${accountHistory['actHistoryType']}=='VMLOAD'">充值卡充值</span>
                        <span th:if="${accountHistory['actHistoryType']}=='CASHLOAD'">现金充值</span>
                        <span th:if="${accountHistory['actHistoryType']}=='ADMINLOAD'">后台充值</span>
                        <span th:if="${accountHistory['actHistoryType']}=='ADMINREFUND'">后台扣款</span>
                        <span th:if="${accountHistory['actHistoryType']}=='FORZEN_AMOUNT'">冻结金额</span>
                        <span th:if="${accountHistory['actHistoryType']}=='THAW_AMOUNT'">解冻金额</span>
                        <span th:if="${accountHistory['actHistoryType']}=='ATTEND'">充值</span>
                        <span th:if="${accountHistory['actHistoryType']}=='SPREAD'">推广收益</span>
                        <span th:if="${accountHistory['actHistoryType']}=='REWARD'">奖金收益</span>
                        <span th:if="${accountHistory['actHistoryType']}=='CASH'">提现</span>
                        <span th:if="${accountHistory['actHistoryType']}=='REFUND_CASH'">回退提现</span>
                    </td>
                    <td class="text-center">
                        <span th:if="${accountHistory['bizType']}=='ADMIN'">后台管理员操作</span>
                        <span th:if="${accountHistory['bizType']}=='SHOP'">购买商品</span>
                        <span th:if="${accountHistory['bizType']}=='REFUND'">订单退款</span>
                        <span th:if="${accountHistory['bizType']}=='VM'">非现金充值</span>
                        <span th:if="${accountHistory['bizType']}=='CASH'">现金充值</span>
                    </td>
                    <td class="text-center"><span th:text="${#strings.substring(accountHistory['createTime'],0,16)}"></span></td>
                </tr>

            </tbody>
        </table>
    </div>
    <!-- 分页，开始 -->
    <div data-th-replace="layout/adminPage"></div>
    <!-- 分页，结束 -->
</div>